package demo8;

public class condition_if {
    public static void main(String[] args) {
        int x = 10;

        if (x < 20) {
            System.out.println("x是大于20");
        }

        if (x < 15) {
            System.out.println("x是大于15");
        } else {
            System.out.println("x是小于15");
        }

        int y = 30;
        if(y == 50) {
            System.out.println("y等于50");
        } else if (y > 50) {
            System.out.println("y大于50");
        } else {
            System.out.println("y小于50");
        }
    }
}
